package vote.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "vote")
@Data
public class VoteConfigProperties {
    private int dailyLimit;//每日投票次数限制
    private int maxCategories;//每类投票限制
    private int itemsPerCategory;
    private int totalMaxVotes;//总票限制
}
